package com.adb.ww2;


public class Log {
	
	
	private static Boolean flag = true;
	
	// debug as blue color   
	// verbose as black color 
	
	/**
	 *  debug view as blue color
	 * @param tag
	 * @param message
    */
	public static void debug(String tag,String message){
		if(flag)
		android.util.Log.d(tag,message);
	}
	/**
	 *  debug view as blue color
	 * @param tag
	 * @param message
	 * @param throwable
	 */
	public static void debug(String tag,String message,Throwable throwable){
		if(flag)
		android.util.Log.d(tag,message,throwable);
	}
	
	/**
	 * verbose View as black color 
	 * @param tag
	 * @param message
	 */
	public static void verbose(String tag,String message){
		if(flag)
		android.util.Log.v(tag, message);
	}
	
	/**
	 * verbose View as black color 
	 * @param tag
	 * @param message
	 * @param throwable
	 */
	public static void verbose(String tag,String message,Throwable throwable){
		if(flag)
		android.util.Log.v(tag, message,throwable);
	}
	/**
	 * verbose View as black color 
	 * @param tag
	 * @param e
	 */
	public static void error(String tag,Exception e){
		if(flag)
		{
			Log.debug(tag,e.getMessage());
			e.printStackTrace();
		}
			
	}

}
